package cn.tedu.inter2;

public class TestRelation {

}
interface Inter1{
    void save();
    void delete();
}
interface Inter2{
    void update();
    void find();
}
interface Inter3 extends Inter1,Inter2{

}
class Inter1Impl1 implements Inter1{

    @Override
    public void save() {

    }

    @Override
    public void delete() {

    }
}
/*针对java的类而言,一个类只能有一个父类:单继承
* 但是一个类可以实现多个接口:多实现*/
class InterImpl2 implements Inter1,Inter2{

    @Override
    public void save() {

    }

    @Override
    public void delete() {

    }

    @Override
    public void update() {

    }

    @Override
    public void find() {

    }
}
class InterImpl3 implements Inter3{
    @Override
    public void save() {

    }

    @Override
    public void delete() {

    }

    @Override
    public void update() {

    }

    @Override
    public void find() {

    }
}
class ppp extends Inter1Impl1 implements Inter1,Inter2{
    @Override
    public void update() {

    }

    @Override
    public void find() {

    }
}